<template>
	<view class="scroll-style">
		<view class="auth-user">
			<image class="logo" src="@/static/image/logo-1.png"></image>
			<text class="text-xl">申请获取以下权限:</text>
			<text class="text-gray">获取你的公开信息（昵称、头像等）</text>
			<button class="cu-btn" :loading="loading" @click="weixinLogin">授权登录</button>
		</view>
	</view>
</template>

<script>
	import global from '@/utils/global.js';
	export default {
		data(){
			return {
				loading: false,
			}
		},
		onLoad() {

		},
		methods: {
			/* 跳转微信授权登录 */
			weixinLogin() {
				window.location = global.oauth;
			}
		}
	}
</script>

<style lang="scss">
	.auth-user {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: 120px;
		.logo {
			width: 150rpx;
			height: 150rpx;
		}
		
		.text-xl {
			margin-top: 40rpx;
			font-size: 34rpx;
		}
		
		.text-gray {
			margin-top: 20rpx;
			font-size: 26rpx;
			color: #686B73;
		}
		
		.cu-btn {
			margin-top: 20px;
			width: 140px;
			font-size: 14px;
			color: #FFFFFF;
			background: #74AF64;
		}
	}
</style>
